package com.jnzc.ocr.serv.shop.api.impl;

import com.jnzc.ocr.serv.shop.api.ShopProductSkuApi;
import com.jnzc.ocr.serv.shop.entity.ShopProductSku;
import com.jnzc.ocr.serv.shop.service.ShopProductSkuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zhangcm
 * @version 1.0, 2017-09-29
 */
@RestController
public class ShopProductSkuApiImpl implements ShopProductSkuApi {

    @Autowired
    private ShopProductSkuService shopProductSkuService;

    @Override
    public List<ShopProductSku> list(Long productId, Long shopId) {
        return shopProductSkuService.list(productId, shopId);
    }
}
